<template>
  <div>
    <!-- 路由占位符 -->
    <router-view></router-view>
    <!-- tabar 页面渲染 -->
    <van-tabbar v-model="active" @change="onChange">

      <van-tabbar-item to='/index'>
        首页
        <!-- 自定义插槽图标 -->
        <template #icon>
         <i class='iconfont icon-ind'></i>
        </template>
      </van-tabbar-item>

      <van-tabbar-item to='/houselist'>找房
        <template #icon>
         <i class='iconfont icon-findHouse'></i>
        </template>
      </van-tabbar-item>

      <van-tabbar-item to='/new'>资讯
        <template #icon>
         <i class='iconfont icon-infom'></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to='/my'>我的
        <template #icon>
         <i class='iconfont icon-my'></i>
        </template>
      </van-tabbar-item>
    </van-tabbar>

  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0
    }
  },
  methods: {
    onChange() {}
  }
}
</script>

<style lang="less" scoped>
</style>>
